package com.linchuansi.lock.threadlocal;

import lombok.SneakyThrows;

/**
 * *
 *
 * @author wb
 * @date 2025-11-14 21:46*@since 1.0.0
 */
public class ThreadLocalDemo {
    static ThreadLocal threadLocal = new ThreadLocal();

    @SneakyThrows
    public static void main(String[] args) {
        threadLocal.set("hello");
        threadLocal.get();

        System.out.println(threadLocal.get());
        threadLocal.remove();
        Thread.sleep(1000000);
    }
}
